/* ---------------------------- dom/nodelist.js ----------------------------- */
VED.dom.nodeList = new Class({
   initialize: function( nativeList ) {
      this.$ = nativeList;
   },

   count: function() {
      return this.$.length;
   },

   getItem: function( index ) {
      if ( index < 0 || index >= this.$.length )
         return null;

      var $node = this.$[ index ];
      return $node ? new VED.dom.node( $node ) : null;
   }
});





